package com.liao.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@RequiredArgsConstructor
public class Order {

    @NonNull
    private String orderId;//订单编号
    @NonNull
    private String buyerPhone;//卖方电话

//    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @NonNull
    private Date orderTime;//下单时间
    @NonNull
    private Integer state;//状态
    @NonNull
    private String userId;
    @NonNull
    private String address;

    private String oldOrderId;
}
